/*
 * Copyright (c) 2017-2019, Lindenis Tech. Ltd.
 * All rights reserved.
 *
 * File:
 *
 * Description:
 *
 * Author:
 *      xiaoshujun@lindeni.com
 *
 * Create Date:
 *      2021/06/10
 *
 * History:
 *
 */

#ifndef __PALLOC_WRAPPER_H__
#define __PALLOC_WRAPPER_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "osal_types.h"

/**
 * These are APIs of palloc.
 */
_handle_t palloc_create();
void      palloc_destroy(_handle_t h_palloc);
void *    palloc_alloc(_handle_t h_palloc, int size);
void      palloc_free(_handle_t h_palloc, void * p_buf);
unsigned long palloc_vir2phy(_handle_t h_palloc, void * p_buf);
void      palloc_flush_cache(_handle_t h_palloc, void * p_buf, size_t size);

#ifdef __cplusplus
}
#endif

#endif  // __PALLOC_WRAPPER_H__

